<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the NIMIOSSDKOptions constructor from Class NIMIOSSDKOptions from the nim_core_v2 library, for the Dart programming language.">
  <title>NIMIOSSDKOptions constructor - NIMIOSSDKOptions - nim_core_v2 library - Dart API</title>


  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" rel="stylesheet">
  
  <link rel="stylesheet" href="../../static-assets/github.css?v1">
  <link rel="stylesheet" href="../../static-assets/styles.css?v1">
  <link rel="icon" href="../../static-assets/favicon.png?v1">
  
</head>

<body data-base-href="../../" data-using-base-href="false" class="light-theme">
<div id="overlay-under-drawer"></div>
<header id="title">
  <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../../index.html">nim_core_v2</a></li>
    <li><a href="../../nim_core_v2/nim_core_v2-library.html">nim_core.dart</a></li>
    <li><a href="../../nim_core_v2/NIMIOSSDKOptions-class.html">NIMIOSSDKOptions</a></li>
    <li class="self-crumb">NIMIOSSDKOptions constructor</li>
  </ol>
  <div class="self-name">NIMIOSSDKOptions</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
  <div class="toggle" id="theme-button" title="Toggle brightness">
    <label for="theme">
      <input type="checkbox" id="theme" value="light-theme">
      <span id="dark-theme-button" class="material-symbols-outlined">
        dark_mode
      </span>
      <span id="light-theme-button" class="material-symbols-outlined">
        light_mode
      </span>
    </label>
  </div>
</header>
<main>
  <div
      id="dartdoc-main-content"
      class="main-content"
      data-above-sidebar="nim_core_v2&#47;NIMIOSSDKOptions-class-sidebar.html"
      data-below-sidebar="">
      <div>
<h1><span class="kind-constructor">NIMIOSSDKOptions</span> constructor 
</h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">NIMIOSSDKOptions</span>(<wbr>{<ol class="parameter-list"> <li><span class="parameter" id="-param-apnsCername"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">apnsCername</span>, </span></li>
<li><span class="parameter" id="-param-pkCername"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">pkCername</span>, </span></li>
<li><span class="parameter" id="-param-maxUploadLogSize"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">maxUploadLogSize</span>, </span></li>
<li><span class="parameter" id="-param-enableFetchAttachmentAutomaticallyAfterReceivingInChatroom"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableFetchAttachmentAutomaticallyAfterReceivingInChatroom</span>, </span></li>
<li><span class="parameter" id="-param-enableFileProtectionNone"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableFileProtectionNone</span>, </span></li>
<li><span class="parameter" id="-param-enabledHttpsForInfo"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enabledHttpsForInfo</span>, </span></li>
<li><span class="parameter" id="-param-enabledHttpsForMessage"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enabledHttpsForMessage</span>, </span></li>
<li><span class="parameter" id="-param-maxAutoLoginRetryTimes"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">maxAutoLoginRetryTimes</span>, </span></li>
<li><span class="parameter" id="-param-maximumLogDays"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">maximumLogDays</span>, </span></li>
<li><span class="parameter" id="-param-disableReconnectInBackgroundState"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">disableReconnectInBackgroundState</span>, </span></li>
<li><span class="parameter" id="-param-enableTeamReceipt"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableTeamReceipt</span>, </span></li>
<li><span class="parameter" id="-param-enableFileQuickTransfer"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableFileQuickTransfer</span>, </span></li>
<li><span class="parameter" id="-param-enableAsyncLoadRecentSession"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableAsyncLoadRecentSession</span>, </span></li>
<li><span class="parameter" id="-param-linkQuickSwitch"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">linkQuickSwitch</span>, </span></li>
<li><span class="parameter" id="-param-enabledQChatMessageCache"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enabledQChatMessageCache</span>, </span></li>
<li><span class="parameter" id="-param-enableV2CloudConversation"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">enableV2CloudConversation</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-appKey"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> <span class="parameter-name">appKey</span>, </span></li>
<li><span class="parameter" id="-param-sdkRootDir"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">sdkRootDir</span>, </span></li>
<li><span class="parameter" id="-param-cndTrackInterval"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">cndTrackInterval</span>, </span></li>
<li><span class="parameter" id="-param-customClientType"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">customClientType</span>, </span></li>
<li><span class="parameter" id="-param-shouldSyncStickTopSessionInfos"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">shouldSyncStickTopSessionInfos</span>, </span></li>
<li><span class="parameter" id="-param-enableReportLogAutomatically"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableReportLogAutomatically</span>, </span></li>
<li><span class="parameter" id="-param-loginCustomTag"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">loginCustomTag</span>, </span></li>
<li><span class="parameter" id="-param-enableDatabaseBackup"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableDatabaseBackup</span>, </span></li>
<li><span class="parameter" id="-param-shouldSyncUnreadCount"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">shouldSyncUnreadCount</span>, </span></li>
<li><span class="parameter" id="-param-shouldConsiderRevokedMessageUnreadCount"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">shouldConsiderRevokedMessageUnreadCount</span>, </span></li>
<li><span class="parameter" id="-param-enableTeamMessageReadReceipt"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableTeamMessageReadReceipt</span>, </span></li>
<li><span class="parameter" id="-param-shouldTeamNotificationMessageMarkUnread"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">shouldTeamNotificationMessageMarkUnread</span>, </span></li>
<li><span class="parameter" id="-param-enableAnimatedImageThumbnail"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableAnimatedImageThumbnail</span>, </span></li>
<li><span class="parameter" id="-param-enablePreloadMessageAttachment"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enablePreloadMessageAttachment</span>, </span></li>
<li><span class="parameter" id="-param-useAssetServerAddressConfig"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">useAssetServerAddressConfig</span>, </span></li>
<li><span class="parameter" id="-param-nosSceneConfig"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Map-class.html">Map</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../../nim_core_v2/NIMNosScene.html">NIMNosScene</a></span>, <span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span>&gt;</span>?</span> <span class="parameter-name">nosSceneConfig</span>, </span></li>
<li><span class="parameter" id="-param-serverConfig"><span class="type-annotation"><a href="../../nim_core_v2/NIMServerConfig-class.html">NIMServerConfig</a>?</span> <span class="parameter-name">serverConfig</span>, </span></li>
<li><span class="parameter" id="-param-enableFcs"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">enableFcs</span> = <span class="default-value">true</span>, </span></li>
</ol>})
    </section>
    


    
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">NIMIOSSDKOptions({
  &#47;&#47;&#47; android configurations
  this.apnsCername,
  this.pkCername,
  this.maxUploadLogSize,
  this.enableFetchAttachmentAutomaticallyAfterReceivingInChatroom,
  this.enableFileProtectionNone,
  this.enabledHttpsForInfo,
  this.enabledHttpsForMessage,
  this.maxAutoLoginRetryTimes,
  this.maximumLogDays,
  this.disableReconnectInBackgroundState,
  this.enableTeamReceipt,
  this.enableFileQuickTransfer,
  this.enableAsyncLoadRecentSession,
  this.linkQuickSwitch,
  this.enabledQChatMessageCache,
  this.enableV2CloudConversation = false,

  &#47;&#47;&#47; common configurations
  required String appKey,
  String? sdkRootDir,
  int? cndTrackInterval,
  int? customClientType,
  bool? shouldSyncStickTopSessionInfos,
  bool? enableReportLogAutomatically,
  String? loginCustomTag,
  bool? enableDatabaseBackup,
  bool? shouldSyncUnreadCount,
  bool? shouldConsiderRevokedMessageUnreadCount,
  bool? enableTeamMessageReadReceipt,
  bool? shouldTeamNotificationMessageMarkUnread,
  bool? enableAnimatedImageThumbnail,
  bool? enablePreloadMessageAttachment,
  bool? useAssetServerAddressConfig,
  Map&lt;NIMNosScene, int&gt;? nosSceneConfig,
  NIMServerConfig? serverConfig,
  bool enableFcs = true,
}) : super(
        appKey: appKey,
        nosSceneConfig: nosSceneConfig,
        serverConfig: serverConfig,
        sdkRootDir: sdkRootDir,
        cdnTrackInterval: cndTrackInterval,
        customClientType: customClientType,
        shouldSyncStickTopSessionInfos: shouldSyncStickTopSessionInfos,
        enableReportLogAutomatically: enableReportLogAutomatically,
        loginCustomTag: loginCustomTag,
        enableDatabaseBackup: enableDatabaseBackup,
        shouldSyncUnreadCount: shouldSyncUnreadCount,
        shouldConsiderRevokedMessageUnreadCount:
            shouldConsiderRevokedMessageUnreadCount,
        enableTeamMessageReadReceipt: enableTeamMessageReadReceipt,
        shouldTeamNotificationMessageMarkUnread:
            shouldTeamNotificationMessageMarkUnread,
        enableAnimatedImageThumbnail: enableAnimatedImageThumbnail,
        enablePreloadMessageAttachment: enablePreloadMessageAttachment,
        useAssetServerAddressConfig: useAssetServerAddressConfig,
        enableFcs: enableFcs,

        &#47;&#47;&#47; iOS =&gt; 是否在收到消息后自动下载附件 (群和个人)
        &#47;&#47;&#47; 默认为YES,SDK会在第一次收到消息是直接下载消息附件,上层开发可以根据自己的需要进行设置
      );</code></pre>
</section>


  </div> <!-- /.main-content -->
  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <!-- The search input and breadcrumbs below are only responsively visible at low resolutions. -->
<header id="header-search-sidebar" class="hidden-l">
  <form class="search-sidebar" role="search">
    <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
    <li><a href="../../index.html">nim_core_v2</a></li>
    <li><a href="../../nim_core_v2/nim_core_v2-library.html">nim_core_v2</a></li>
    <li><a href="../../nim_core_v2/NIMIOSSDKOptions-class.html">NIMIOSSDKOptions</a></li>
    <li class="self-crumb">NIMIOSSDKOptions constructor</li>
</ol>

    <h5>NIMIOSSDKOptions class</h5>
    <div id="dartdoc-sidebar-left-content"></div>
  </div><!--/.sidebar-offcanvas-left-->
  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->
</main>
<footer>
  <span class="no-break">
    nim_core_v2
      10.9.2-ohos-beta
  </span>
  
</footer>


<script src="../../static-assets/highlight.pack.js?v1"></script>
<script src="../../static-assets/docs.dart.js"></script>

</body>
</html>

